const express = require("express");

const app = express();

app.use( express.static("./www") );
app.use( express.urlencoded() );

app.all("*", (req,res,next)=>{
  // ...
  // ...
  next()
})

app.get("/login", (req,res,next)=>{
  const {} = req.query;
  // ...
  // ...
  res.send("");
})
app.post("/register", (req,res,next)=>{
  const {} = req.body;
  // ...
  // ...
  res.send("");
})

app.listen(3000, ()=>{
  console.log("服务器开启成功")
})
